<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=request.getContextPath()%>/" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="css/bootstrap-theme.min.css" />
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<title>Insert title here</title>
</head>
<body>
	<div class="container">
		<nav class="navbar navbar-default" role="navigation">
	<div class="container-fluid">
    <div class="navbar-header">
        <a class="navbar-brand">OA系统</a>
    </div>
    <div>
        <form class="navbar-form navbar-left" role="search">
            <div class="form-group">
                <input type="text" class="form-control" placeholder="Search">
            </div>
            <button type="submit" class="btn btn-default">搜索</button>
        </form>
        <a href="shar/waitAdd" class="btn btn-default navbar-btn">添加</a>
    </div>
	</div>
</nav>	
		<table class="table table-striped table-bordered table-hover">
			<tbody>
					<tr>
					<td>文章类型</td>
					<td>文章标题</td>
					<td>作者</td>
					<td>发布时间</td>
					<td>操作</td>
					</tr>
				<c:forEach var="shar" varStatus="status" items="${sharList }">
					<tr>
					<td>${shar.sharType }</td>
					<td>${shar.head }</td>
					<td>${shar.creater }</td>
					<td><fmt:formatDate value="${shar.createTime }" pattern="yyyy年MM月dd日HH时mm分"/></td>
					<td>
					<a class="btn btn-primary" href="shar/findById/${shar.id }">详情</a>
					</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>